<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-后台用户管理</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用CSS文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
   
        <!-- 局部css -->
        <link href="/css/admin/productManager.css" rel="stylesheet" type="text/css"/>
 
    </head>
    <body class="skin-blue">
        
		<!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
        
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>产品管理列表<small>产品列表信息</small></h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i>首页</a></li>
                        <li class="active">产品管理</li>
                        <li class="active">商品列表</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content" id="goodscontent">
                	<div id="sec1">
	                	<!-- 筛选 -->
	                    <div class="row form-horizontal" id="sortlist" onKeyDown = "keyQuery()">
	                    	<div class="col-md-3">
	                    		  <div class="form-group form-group-sm">
								    <label class="col-sm-4 control-label" for="formGroupInputSmall">商品名称：</label>
								    <div class="col-sm-8">
								      <input class="form-control" type="text" name="goodsName" id="goodsName" placeholder="商品名称">
								    </div>
								  </div>
	                    	</div> 
	  						<div class="col-md-2">
								  <div class="form-group form-group-sm">
								    <label class="col-sm-4 control-label" for="formGroupInputSmall">发布状态：</label>
								    <div class="col-sm-8">
								       <select name="isPublish" id="isPublish" class="form-control" >
								       	  <option value="">请选择</option>
										  <option value="0">未上架</option>
										  <option value="1">已上架</option>
										  <option value="2">已下架</option>
										</select>
								    </div>
								  </div>
	                    	</div>
	  						<div class="col-md-2">
								  <div class="form-group form-group-sm">
								    <label class="col-sm-4 control-label" for="formGroupInputSmall">审核状态：</label>
								    <div class="col-sm-8">
								      <select name="auditState" id="auditState" class="form-control">
								      	  <option value="">请选择</option>
										  <option value="0">未提交</option>
										  <option value="1">未审核</option>
										  <option value="2">审核不通过</option>
										  <option value="3">审核通过</option>
										</select>
								    </div>
								  </div>
	                    	</div>
	  						<div class="col-md-3">
								  <button type="button" id="query" class="btn btn-default">查询</button>
	                    	</div>
	                    </div>
	                    
	                    <!-- 操作 -->
	                    <div class="row" id="goodoperator">
	                    	<c:if test="${adminUser.roleId == 'MANAGER' || adminUser.roleId == 'PUBLISHER'}">
	                    		<a href="/sysAdmin/goodsListAdmin/goodsPublish"  class="btn btn-default">新增发布</a>
	                    		<button type="button" class="btn btn-default prodelete">删除</button>
	                    		<button type="button" class="btn btn-default proapply">申请发布</button>
	                    	</c:if>
						  	<c:if test="${adminUser.roleId == 'MANAGER' || adminUser.roleId == 'OPERATOR'}">
						  		<button type="button" class="btn btn-default proup">上架</button>
						  		<button type="button" class="btn btn-default prodown">下架</button>
						  		<button type="button" class="btn btn-default procheck">审核</button>
						  	</c:if>
						</div>
						
						<!-- 表格数据 -->
						<div id="goodstablebox" class="bstable">
					  		<table class="table table-bordered" id="goodsList">
						      <thead>
						        <tr>
						          <th>
								      <label class="icheck checkall">
								      	<input type="checkbox" class="simple">
								      	<span>全选</span>
								      </label>
						          </th>
						          <th>
						          	<span class="filter filterno">商品编号</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th>
						          	<span class="filter filtername">商品名称</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th>
						          	<span class="filter filtercty">分类</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th>
						          	<span class="filter filtersuply">软件开发商</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th>
						          	<span class="filter filtertime">发布时间</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th class="filterstatebox">
						          	<span class="filter filterstate">审核状态</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th class="filterstatebox">
						          	<span class="filter filterstate">发布状态</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th>
						          	<span class="filter filteroptor">操作人</span>
						          	<i class="fa fa-fw fa-sort-desc"></i>
						          </th>
						          <th class="operations">
						          	<span>操作</span>
						          </th>
						        </tr>
						      </thead>
						      <tbody>
								
						      </tbody>
						    </table>
							<!-- 分页 -->
							<div>
								<div id="pagesbox"></div>
<!-- 					  			<div id="pagesbox"><div class="row"><div class="col-xs-4"><div class="dataTables_info" id="pageInfor">当前显示数据<select class="input-sm showCountAstrict"><option value="10">10</option><option value="20">20</option><option value="30">30</option><option value="40">40</option><option value="50">50</option></select>条，共<b class="allCount">80</b>条</div></div><div class="col-xs-8"><div class="dataTables_paginate paging_bootstrap text-right"><ul class="pagination"><li class="prev disabled"><a href="#" data-goto="prev">← 上一页</a></li><li class="active"><a href="#" data-goto="1">1</a></li><li><a href="#" data-goto="2">2</a></li><li><a href="#" data-goto="3">3</a></li><li><a href="#" data-goto="4">4</a></li><li><a href="#" data-goto="5">5</a></li><li><a href="#" data-goto="6">6</a></li><li><a href="#" data-goto="7">7</a></li><li><a href="#" data-goto="8">8</a></li><li class="next"><a href="#" data-goto="next">下一页 → </a></li></ul></div></div></div></div> -->
					  		</div>
				  		</div>
						
						
			  		</div>

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
		<script type="text/javascript">
			var currentMenu = 'productManager';
		</script>
		<!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>

		<!-- 局部js文件 -->
		<script src="/js/admin/productManager/goodsList.js"></script>
    </body>
</html>